<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
try{
	if(null==request.getSession().getAttribute("userInfo")){
	    out.print("<script>window.location.href='../web/login/login.jsp'</script>");
	}
}catch(Exception e)
{
    out.print("<script>window.location.href='../web/login/login.jsp'</script>");
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="<%=basePath%>scripts/jquery-1.4.2.js">	</script>
<script type="text/javascript" src="<%=basePath%>web/register/register.js">	</script>
<script type="text/javascript" src="<%=basePath%>scripts/cookie.js"></script>
	<link rel="stylesheet" href="../scripts/kindeditor-4.1/themes/default/default.css" />
	<link rel="stylesheet" href="../scripts/kindeditor-4.1/plugins/code/prettify.css" />
	<script charset="utf-8" src="../scripts/kindeditor-4.1/kindeditor-min.js"></script>
	<script charset="utf-8" src="../scripts/kindeditor-4.1/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../scripts/kindeditor-4.1/plugins/code/prettify.js"></script>
<title>求诊信息</title>
<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #FDFDFD;
}
img { border:0}
p {
	margin: 0px;
	padding: 0px;
}
form,td,th{ 
border:medium none;
margin: 0;
padding: 0;
} 
ul,li {
	margin: 0px;
	padding: 0px;
	list-style-type: none;
}
.logset {
	background-image: url(<%=basePath%>web/resources/images/index-search_02.jpg);
	background-repeat: repeat-x;
	height: 32px;
	width: auto;
	line-height: 32px;
}
.logset a {
	font-size: 13px;
	color: #3399cc;
	display: inline-block;
	float: right;
	margin-right: 30px;
}
.content {
	background-image: url(<%=basePath%>web/resources/images/findCipher_04.png);
	height: 111px;
	background-color: #F9F9F9;
	padding-top: 0px;
	background-repeat: repeat-x;
	padding-left: 30px;
}
.content #search {
	width: 784px;
	height: 41px;
	overflow: hidden;
}
.s_t_wr{
	width:634px;
	height:41px;
	margin-right:8px;
	background-image: url(<%=basePath%>web/resources/images/search-list_06.gif);
	background-repeat: no-repeat;
	float: left;
	padding: 0px;
	background-position: left top;
}
.s_t{
	width:595px;
	height:35px;
	outline:none;
	-webkit-appearance:none;
	font-family: "宋体";
	font-size: 14px;
	line-height: 35px;
	margin-top: 0px;
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 34px;
	background-image: url(<%=basePath%>web/resources/images/search-list_06-bg.gif);
	color: #999;
	background-repeat: repeat-x;
	background-position: left 0px;
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 0px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	padding-top: 5px;
	padding-right: 0px;
	padding-bottom: 5px;
	padding-left: 0px;
}
.s_btn_wr{
	width:142px;
	height:41px;
*position:relative;				z-index:0;
	background-image: url(<%=basePath%>web/resources/images/search-list_08.gif);
	background-repeat: no-repeat;
	float: left;
}
.s_btn{
	width:142px;
	height:41px;
	font-size:0px;
	cursor:pointer;
	background-color: #ddd;
	background-image: url(<%=basePath%>web/resources/images/search-list_08.gif);
	text-decoration: none;
	color: #E4E4E4;
}
.content .but123 {
	float: right;
	display: block;
	height: 41px;
	width: 441px;
	margin-top: 68px;
}
.content .but123 a {
	float: left;
	font-size: 14px;
	color: #3399cc;
	font-weight: bold;
	font-family: "宋体";
	line-height: 41px;
	height: 41px;
	display: inline-block;
	width: 100px;
	text-align: left;
	padding-left: 47px;
	text-decoration: none;
}
.content .but123 .but1 {
	background-image: url(<%=basePath%>web/resources/images/search-list_10.gif);
	background-repeat: no-repeat;
	background-position: left top;
}
.content .but123 .but2 {
	background-image: url(<%=basePath%>web/resources/images/search-list_12.gif);
	background-repeat: no-repeat;
	background-position: left top;
}
.content .but123 .but3 {
	background-image: url(<%=basePath%>web/resources/images/search-list_14.gif);
	background-repeat: no-repeat;
	background-position: left top;
}
.foot {
	background-image: url(<%=basePath%>web/resources/images/index-search_25.jpg);
	background-repeat: repeat-x;
	background-position: center top;
	height: 150px;
	background-color: #F9F9F9;
	text-align: center;
	padding-top: 39px;
	line-height: 24px;
	font-size: 13px;
	color: #999;
}
.foot p a {
	color: #999;
}
-->


</style>
<script>
function settab_zzjsnet(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var zzjs=document.getElementById("zzjs_"+name+"_"+i);
  menu.className=i==cursel?"hover":"";
  zzjs.style.display=i==cursel?"block":"none";
 }
}

//验证提交
function checkSubmit1(){

  var  title = $("#title");
  if(title.val().trim().length==0)
  {
     alert("请输入标题!");
     title.focus();
     return;
  }
  
  var  content = $("#content");
  if(content.val().trim().length==0)
  {
     alert("请输入内容!");
     content.focus();
     return;
  }
  	document.forms[0].submit();
}
function onreset1(){
	$("#title").val('');
	$("#content").val('');
}

function zhuxiao(){
	deleteCookie("userName","/");
	deleteCookie("password","/");
	deleteCookie("chkRememberMe","/");
    window.location.href="<%=basePath%>user/qiantanExit.action";
}

</script>
<link href="<%=basePath%>web/resources/css/huiyuan1.css" rel="stylesheet" type="text/css" />
</head>

<body>
<jsp:include page="../top.jsp"></jsp:include>
<form action="../question/updateQuestion.action" method="post">

<div class="hy-wr" align="center">

<div id="lib_zzjs_1"><img src="<%=basePath%>web/resources/images/huiyuan_03.jpg" width="5" height="44" style=" float:left"/>
<div class="lib_menu_zzjsnet ">
<ul>
   <li id="zzjs_11" onclick="settab_zzjsnet('zzjs_1',1,6)" ><a href="<%=basePath%>user/memberInfo.action">会员信息管理</a></li>
   <li id="zzjs_12" onclick="settab_zzjsnet('zzjs_1',2,6)" class="hover"><a href="#"><font color="#000">发布求诊信息</font></a></li>
   <li id="zzjs_13" onclick="settab_zzjsnet('zzjs_1',3,6)"><a href="<%=basePath%>tiCase/searchMemberCase.action">我的病历</a></li>
   <li id="zzjs_14" onclick="settab_zzjsnet('zzjs_1',4,6)"><a href="<%=basePath%>stage/dyHelp.action">导医信息</a></li>
   <li id="zzjs_15" onclick="settab_zzjsnet('zzjs_1',5,6)"><a href="<%=basePath%>web/mem/passwordModify.jsp">修改密码</a></li>
   <li id="zzjs_16" onclick="settab_zzjsnet('zzjs_1',6,6)"><a href="javascript:zhuxiao();">安全注销</a></li>
</ul>
</div><img src="<%=basePath%>web/resources/images/huiyuan_08.jpg" width="5" height="44" style="float:left"/>
</div>
 
<div class="lib_Contentbox_zzjs">
<div id="zzjs_zzjs_1_1" style="display:none"></div>
<div id="zzjs_zzjs_1_2"><div class="qiehuan"><ul><li><a href="<%=basePath%>question/editQuestion.action?flag=2">发布新信息</a></li><li><a href="<%=basePath%>question/findInfoList.action">已发布信息</a></li></ul></div>
  <div class="cont">
     <div class="item"> <span class="label"><strong>标&nbsp;&nbsp;&nbsp;&nbsp;题：</strong></span> <span class="input3">
      <input type="text" style="width: 450px;" maxlength="45" id="title" name="tiQuestion.title" value="${tiQuestion.title}" />
    </span></div>
    <s:if test="flag==1">
     <div class="item"> <span class="label"><strong>发布时间：</strong></span> <span class="input3">
      <s:date name="tiQuestion.createTime" format="yyyy-MM-dd hh:mm:ss"/>
    </span></div>
    </s:if>
  <div class="centerdiv" style="float:left;padding-left:30px;padding-top:5px"><strong>咨询内容：</strong></div>
  	<div style="float:left;padding-top:5px">
  	<textarea cols="76" rows="12" id="content" name="tiQuestion.content">${tiQuestion.content}</textarea>
  	</div>
  	<div style="clear:both"></div>
     <s:if test="tiQuestion.isReply==1">
    <div class="item"> <span class="label"><strong>回复时间：</strong></span> <span class="input1">
  		<s:date name="tiQuestion.replyTime" format="yyyy-MM-dd HH:mm:ss"/>
    </span></div>
    <div class="item"> <span class="label"><strong>医生回复：</strong></span> <span class="input1">
  		<textarea cols="76" rows="7" id="content1" name="tiQuestion.hasReply">${tiQuestion.hasReply}</textarea>
    </span></div>
    </s:if>
    <input type="hidden" id="id" value="${tiQuestion.id}" name="tiQuestion.id"/>
    <input type="hidden" id="groupId" value="${tiQuestion.groupId}" name="tiQuestion.groupId"/>
    <input type="hidden" id="groupId" value="${tiQuestion.groupName}" name="tiQuestion.groupName"/>
    <input type="hidden" id="isReply" value="${tiQuestion.isReply}" name="tiQuestion.isReply"/>
    <s:if test="flag==2">	
		<div class="item" style="margin-top: 30px;">
		  <div class="btn-img" style="cursor: pointer;" onclick="onreset1();">重 &nbsp;置</div>
		  <div class="btn-img" style="cursor: pointer;" onclick="checkSubmit1();">提 &nbsp;交</div>
		</div>
	</s:if>
  </div></div>
<div id="zzjs_zzjs_1_3"></div>
<div id="zzjs_zzjs_1_4"></div>
<div id="zzjs_zzjs_1_5"></div>
<div id="zzjs_zzjs_1_6"></div>
</div>
<div class="lib-contentbox-zzjsbot"></div>
</div>
<div class="sear3but"><span><strong>快捷导航：</strong></span><a href="<%=basePath %>stage/showHosAll.action">医院检索大全</a> <a href="<%=basePath %>stage/toCase.action">病历填写帮助</a> <a href="<%=basePath %>stage/toDy.action">导医服务</a></div>

<div class="foot">
<p>
					<a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage(window.location.href);" href="javascript:;">把网站设为主页</a> &nbsp;&nbsp;&nbsp;
					<a href="javascript:window.external.addFavorite(window.location.href,'医生在线');">把网站添加到收藏夹</a>
				</p>
				<p>
					<a href="<%=basePath%>aboutus/show.action?id=1">关于我们</a> |
					<a href="<%=basePath%>aboutus/show.action?id=1">About US</a>
				</p>
				<p>
					<a href="#">&copy;2012 备案号：京ICP证xxxxxxx号</a>
				</p>
</div>
</form>
</body>
<script type="text/javascript">
		var editor;
        KindEditor.ready(function(K) {
		               editor = K.create('#content', {
		               allowFileManager : true,
		               uploadJson : '../scripts/kindeditor-4.1/upload_json.jsp',
				       fileManagerJson : '../scripts/kindeditor-4.1/file_manager_json.jsp',
				          afterBlur:function(){ 
				            this.sync(); 
				        },  
                       items : [
					 	           'preview','source', '|', 'undo', 'redo', '|',  'cut', 'copy', 'paste',
						        'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
						        'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
						        'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
						        'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
						        'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',
						       'insertfile', 'table', 'hr', 'emoticons', 'map', 'pagebreak',
						        'link', 'unlink'
                  ]
                        
                });
        });
        
</script>
</html>
